﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("你要计算加减乘除");
            Console.WriteLine("1:加法");
            Console.WriteLine("2:减法");
            Console.WriteLine("3:乘法");
            Console.WriteLine("4:除法");
            int count = int.Parse(Console.ReadLine());
            Console.WriteLine("请输入第一个数字");
            double one = double.Parse(Console.ReadLine());
            Console.WriteLine("请输入第二个数字");
            double two = double.Parse(Console.ReadLine());
            Compute compute = new Compute();
            switch (count) {
                case 1: Console.WriteLine("等于"+compute.Addition(one,two));break;
                case 2: Console.WriteLine( "等于"+compute.Subtraction(one,two));break;
                case 3: Console.WriteLine("等于" + compute.Multiplication(one, two)); break;
                case 4: Console.WriteLine("等于"+compute.Division(one,two));break;
                default: Console.WriteLine("输入错误");break;
            }
        }
    }
}
